﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<List<kysec.RAL.EFToMySql.tb_news>>" ValidateRequest="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>UpdateNews</title>
    <script src="../../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <link href="../../Content/back/css/op.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/back/css/skin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../../fckeditor/fckeditor.js"></script>
   
    <script type="text/javascript">

        function SubmitNews() {
            $("form:first").submit();
        }

        function reSetForm() {
            $("#c_vc_title").val('');
            $("#c_nvc_from").val('');
        }    
    </script>
</head>
<body>
<form method="post" runat="server" id="form" action="/News/UpdateNewsInfo" enctype="multipart/form-data">
    <div><%string type = Request.QueryString["type"].ToString();
      string id = Request.QueryString["id"].ToString(); %>  
      <input id="id" name="id" value="<%=id %>" type="hidden"/>
   <table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" height="29" valign="top" background="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/mail_leftbg.gif") %>"><img src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/left-top-right.gif") %>" width="17" height="29" /></td>
    <td width="100%" height="29" valign="top" background="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/content-bg.gif") %>"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">修改新闻</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/mail_rightbg.gif") %>"><img src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/nav-right-bg.gif") %>" width="16" height="29" /></td>
  </tr>

  <tr>
    <td height="71" valign="middle" background="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/mail_leftbg.gif") %>">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9"><table border="0" cellpadding="0" cellspacing="0"> 
     <tr>
            <td class="left_txt">当前位置：<% if (type.Equals("0"))
                                        { %><a href="<%:kysec.CR.MyUrl.WebData.WEBURL %>/News/InfoList?type=<%:type %>">行业新闻列表</a><%}
                                        else
                                        { %><a href="<%:kysec.CR.MyUrl.WebData.WEBURL %>/News/InfoList?type=<%:type %>">公司新闻列表</a><%} %>  >>  修改新闻</td>
      </tr></table>
   <div style="background-color:#97b9f0;height:1px;margin-bottom:10px;"></div>

        <div style="text-align:center;">
        <input id="type" name="type" value="<%=type %>" type="hidden"/>        
           <div style="margin-top:10px; " >
           <%if (Model == null)
             { %><span style="color:Red;font-size:xx-large;">操作有误，请正确操作……</span><a href="<%=kysec.CR.MyUrl.WebData.WEBURL %>/News/InfoList?type=<%=type %>" title="点击返回用户列表" style="margin-left:10px;">返回</a><%}
             else
             {
                 foreach (var item in Model)
                 { %>
            <table border="0" cellpadding="1" cellspacing="0" width="100%" >
            <tr  style="height:50px;" bgcolor="#d3ebf8">
                <td width="5%" ><div><label>标题</label></div></td>
                <td align="left"><div class="td_Left"><input type="text" id="c_vc_title" name="c_vc_title" size="20" value="<%:item.c_vc_title %>"/></div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<div class="error" id="user">标题不能为空</div></td>
            </tr>
            
            <tr style="height:50px;" bgcolor="#97b9f0">
                <td width="5%"><div><label>内容</label></div></td>
                <td align="left"><label for="c_ntx_content"></label><%=Html.FckEditor("c_ntx_content",item.c_ntx_content, new FckConfig { Skin = FckSkin.Office2003, Width = "100%", Height = "300px", ToolbarSet = FckToolbarSet.Default })%></td>
            </tr>
           
            <tr style="height:50px;" bgcolor="#d3ebf8">
                <td  width="5%"><div><label>来源</label></div> </td>
                <td  align="left"><div class="td_Left"><input type="text" id="c_nvc_from" name="c_nvc_from"  size="22" value="<%:item.c_nvc_from %>" /></div></td>
            </tr>
            
            </table><%}
             } %></div>
            <div style="min-height:1px; width:100%; background-color:#97b9f0;">&nbsp;</div>
            <p>
                <a href="javascript:;" onclick="SubmitNews();">确认修改</a>
                <a href="javascript:;" onclick="reSetForm();" style="margin:0px 10px 0px 10px">重置</a>
                <a href="<%=kysec.CR.MyUrl.WebData.WEBURL %>/News/InfoList?type=<%:type %>">返回</a>
            </p>
        </div>
     </td>
    <td background="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/mail_rightbg.gif") %>">&nbsp;</td>
  </tr>
  <tr>
    <td valign="middle" background="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/mail_leftbg.gif") %>"><img src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/buttom_left2.gif") %>" width="17" height="17" /></td>
      <td  valign="top" background="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/buttom_bgs.gif") %>"><img src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/buttom_bgs.gif") %>" width="17" height="17" /></td>
    <td background="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/mail_rightbg.gif") %>"><img src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/buttom_right2.gif") %>" width="16" height="17" /></td>
  </tr>
</table>
  
    </div>
    </form>
</body>
</html>
